package cn.getech.data.development.config.properties;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
public class RangerConfig {

    @Value("${spring.ranger.rest.resturl:}")
    private String resturl;

    @Value("${spring.ranger.rest.username:}")
    private String username;

    @Value("${spring.ranger.rest.password:}")
    private String password;


    public static Integer POLICE_ID;

    @Value("${spring.ranger.superPoliceId:2}")
    public void setSuperPoliceId(Integer superPoliceId) {
        POLICE_ID = superPoliceId;
    }
    public static  String GROUP_ID;
    public static  String USER_PRE;

    @Value("${spring.ranger.group-id:}")
    public void setGroupId(String groupId) {
        GROUP_ID = groupId;
    }

    @Value("${spring.ranger.user-preffix:}")
    public void setUserPre(String userPre) {
        USER_PRE = userPre;
    }
}
